<div id="container">
<?php
if( !ismedia() && !is_page() ):
if( !get('ini_metro') || get('ini_metro')=="显示" ){
	if( is_home()||is_archive()||get('ini_metro_s')=="显示" ){
?>
	<div class="clear"></div>
	<div id="slide">
		<div id="featured">
			<ul id="featured-li"></ul>
			<div id="featured-box">
<?php
		query_posts( 'meta_key=top&ignore_sticky_posts=1&showposts='.get('ini_num') );
		if(have_posts()):
			while (have_posts()): the_post();
				if (get('ini_no_thumb')){   #无图模式
					$colors = ini_color();
					$color = $colors[dechex( rand(0,8) )];
					echo "<ul><li><a rel=\"external\" href=\"".get_permalink()."\"><button style=background:$color>".get_the_title()."</button></a></li></ul>";
				} else {
					ini_featured();
				}
			endwhile;
			else:
			query_posts( 'orderby=rand&ignore_sticky_posts=1&showposts='.get('ini_num') );
			while (have_posts()) : the_post();
				if (get('ini_no_thumb')){   #无图模式
					$colors = ini_color();
					$color = $colors[dechex( rand(0,8) )];
					echo "<ul><li><a rel=\"external\" href=\"".get_permalink()."\"><button style=background:$color>".get_the_title()."</button></a></li></ul>";
				} else {
					ini_featured();
				}
			endwhile;
		endif;
		wp_reset_query();
?>
			</div>
		</div>
	</div><?#end metro slide?> 
<?php
	}
}
include 'bulletin.php';
endif;#ismedia